package net.lcheng.service;

import net.lcheng.commons.utils.PageList;
import net.lcheng.model.User;

import java.util.Date;

/**
 * Created by Administrator on 2016/8/27.
 */
public interface UserService {
    /***
     * 根据手机号或OpenId获取用户信息(qiliping:2016-3-29)
     *
     * @param word
     * @return
     */
    User getUserByPhoneOrOpenId(String word);
    /***
     * 获取会员列表
     *
     * @param pageIndex
     * @param pageSize
     * @param userName
     * @param sdate
     * @param edate
     * @return
     */
    PageList<User> setUserList(Integer pageIndex, Integer pageSize, String userName, Date sdate, Date edate);

    /**
     * 删除用户
     * @param userId
     * @return
     */
    int userDelete(String userId);
    /***
     * 根据手机号获取用户
     *
     * @param phone
     * @return
     */
    User getUserByPhone(String phone);

    /**
     * 根据userId获取user
     * @param userId
     * @return
     */
    User getUserByUserId(String userId);
}
